package com.yehangtech.designpattern.行为型_状态模式;

import com.yehangtech.designpattern.行为型_状态模式.entity.Result;
import com.yehangtech.designpattern.行为型_状态模式.handler.StateHandler;
import com.yehangtech.designpattern.行为型_状态模式.service.ActivityService;
import com.yehangtech.designpattern.行为型_状态模式.service.Status;

public class Main {
    public static void main(String[] args) {
        //编辑中->提审活动
        String activityId = "100001";
        ActivityService.init(activityId, Status.Editing);
        StateHandler stateHandler = new StateHandler();
        Result result = stateHandler.arraignment(activityId, Status.Editing);
        System.out.println(result);
    }
}
